package com.zhijian.medical.dao.local;

import com.zhijian.medical.entity.po.Role;
import com.zhijian.medical.entity.vo.request.RoleSearchVo;
import com.zhijian.medical.entity.vo.response.RoleVo;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

    int count(RoleSearchVo roleSearchVo);

    List<RoleVo> selectList(RoleSearchVo roleSearchVo);

    RoleVo selectVoById(Long id);

    /**
     * 根据名称查询
     *
     * @param name
     * @return
     */
    RoleVo selectVoByName(String name);
}